home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / FW_CSuperView AddSubView < prev    next >
Encoding:
Internet Message Format  |  1996-07-08  |  688 b   |  [TEXT/ttxt]

  1. Subject:     FW_CSuperView::AddSubView
  2. Sent:        7/8/96 11:27 AM
  3. Received:    7/8/96 11:51 AM
  4. From:        Rob Cope, rob@eclipse.cpcn.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8.  
  9. FW_CSuperView::AddSubView starts like this:
  10.  
  11. void FW_CSuperView::AddSubView(Environment* ev, FW_CView *subview)
  12. {
  13.     if (fSubViews == NULL) 
  14.     {
  15.         fSubViews = FW_NEW(FW_CViewCollection, ());
  16.     } 
  17.     else if (fSubViews->Contains(this) == true)
  18.     {
  19.         FW_DEBUG_MESSAGE("subview already added");    
  20.         return;
  21.     }
  22. ...
  23.  
  24. I believe the "else" should read:
  25. else if (fSubViews->Contains(subView) == true)
  26.  
  27.  
  28. Rob Cope
  29. Eclipse Services
  30.